﻿using System;
using System.Web.UI.WebControls;

namespace Salient.Web.Administration.Security.Wizard
{
    public partial class wizardAddUser : WebAdminUserControl
    {
        public void ContinueClick(object sender, EventArgs e)
        {
            ((WizardPage) Page).SaveActiveView();
        }

        public void CreatedUser(object sender, EventArgs e)
        {
            activeUser.Visible = false;
        }

        public void CreatingUser(object sender, EventArgs e)
        {
            createUser.DisableCreatedUser = !activeUser.Checked;
        }

        public void SendPasswordChanged(object sender, MailMessageEventArgs e)
        {
            e.Cancel = true;
        }
    }
}